// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import promise from 'es6-promise';
// import $ from 'jquery'; 
import "@babel/polyfill";

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
//自定义element-ui
// import './assets/css/index.css';
import './assets/css/main.css';
import './assets/font/iconfont.css';
import filters from './assets/js/filter';

// 注册全局过滤器
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

import store from './assets/js/store'
Vue.config.productionTip = false;
Vue.use(ElementUI);

promise.polyfill();
/* eslint-disable no-new */
new Vue({
  el: '#app',
  store,
  router,
  components: { App },
  template: '<App/>'
})
